// http://stackoverflow.com/questions/494653/how-can-i-use-trace-macro-in-non-mfc-projects
#include "PrecompiledHeader.h"
#ifdef _DEBUG
bool _traceW(wchar_t *format, ...)
{
   wchar_t buffer[1000];

   va_list argptr;
   va_start(argptr, format);
   wvsprintfW(buffer, format, argptr);
   va_end(argptr);

   OutputDebugStringW(buffer);

   return true;
}
bool _trace(char *format, ...)
{
   char buffer[1000];

   va_list argptr;
   va_start(argptr, format);
   wvsprintf(buffer, format, argptr);
   va_end(argptr);

   OutputDebugString(buffer);

   return true;
}
#endif
